package cn.pojo;

import org.springframework.stereotype.Component;

/**
 * 用户信息实体类
 */
@Component
public class HealthUser {
    private Integer userId; // 主键自增id
    private String userOpenId; // openid
    private String userAvatar; // 用户头像链接
    private String userNickName; // 用户昵称
    private String userName; // 用户姓名
    private Integer userSex; // 用户性别
    private Integer userAge; // 用户年龄
    private String userIdCard; // 用户身份证号
    private String userIdCardPath; // 用户身份图片地址
    private String userCensus; // 用户户籍所在地
    private String userAddress; // 用户现住址
    private String userPhone; // 用户手机号


    public HealthUser() {
    }

    public HealthUser(String userOpenId, String userAvatar, String userNickName, Integer userSex) {
        this.userOpenId = userOpenId;
        this.userAvatar = userAvatar;
        this.userNickName = userNickName;
        this.userSex = userSex;
    }
    /**
     *
     * @param userId 主键自增id
     * @param userOpenId 用户openid
     * @param userAvatar 用户头像链接
     * @param userNickName 用户昵称
     * @param userName 用户姓名
     * @param userSex 用户性别 0：未知，1：男，2：女
     * @param userAge 用户年龄
     * @param userIdCard 用户身份证号
     * @param userIdCardPath 用户身份证图片地址
     * @param userCensus 用户户籍所在地
     * @param userAddress 用户现住址
     * @param userPhone 用户手机号
     */
    public HealthUser(Integer userId, String userOpenId, String userAvatar, String userNickName, String userName, Integer userSex, Integer userAge, String userIdCard, String userIdCardPath, String userCensus, String userAddress, String userPhone) {
        this.userId = userId;
        this.userOpenId = userOpenId;
        this.userAvatar = userAvatar;
        this.userNickName = userNickName;
        this.userName = userName;
        this.userSex = userSex;
        this.userAge = userAge;
        this.userIdCard = userIdCard;
        this.userIdCardPath = userIdCardPath;
        this.userCensus = userCensus;
        this.userAddress = userAddress;
        this.userPhone = userPhone;
    }




    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserOpenId() {
        return userOpenId;
    }

    public void setUserOpenId(String userOpenId) {
        this.userOpenId = userOpenId;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public String getUserNickName() {
        return userNickName;
    }

    public void setUserNickName(String userNickName) {
        this.userNickName = userNickName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getUserSex() {
        return userSex;
    }

    public void setUserSex(Integer userSex) {
        this.userSex = userSex;
    }

    public Integer getUserAge() {
        return userAge;
    }

    public void setUserAge(Integer userAge) {
        this.userAge = userAge;
    }

    public String getUserIdCard() {
        return userIdCard;
    }

    public void setUserIdCard(String userIdCard) {
        this.userIdCard = userIdCard;
    }

    public String getUserIdCardPath() {
        return userIdCardPath;
    }

    public void setUserIdCardPath(String userIdCardPath) {
        this.userIdCardPath = userIdCardPath;
    }

    public String getUserCensus() {
        return userCensus;
    }

    public void setUserCensus(String userCensus) {
        this.userCensus = userCensus;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    @Override
    public String toString() {
        return "HealthUser{" +
                "userId=" + userId +
                ", userOpenId='" + userOpenId + '\'' +
                ", userAvatar='" + userAvatar + '\'' +
                ", userNickName='" + userNickName + '\'' +
                ", userName='" + userName + '\'' +
                ", userSex=" + userSex +
                ", userAge=" + userAge +
                ", userIdCard='" + userIdCard + '\'' +
                ", userIdCardPath='" + userIdCardPath + '\'' +
                ", userCensus='" + userCensus + '\'' +
                ", userAddress='" + userAddress + '\'' +
                ", userPhone='" + userPhone + '\'' +
                '}';
    }
}
